<?php
namespace Home\Controller;
use Common\Controller\HomebaseController;
// +----------------------------------------------------------------------
// | Date:2017年2月28日
// +----------------------------------------------------------------------
// | Author: EK_熊<1439527494@qq.com>
// +----------------------------------------------------------------------
// | Description: 此文件作用于****
// +----------------------------------------------------------------------
class MessageController extends HomebaseController{
    
    public function _initialize(){
        $this->model = D('Message');
    }
    
    public function index(){
        $update = $this->model->read_all($this->user_sn);
        $list = $this->model->where(['to_sn'=>$this->user_sn])->order('created_time desc')->select();
        $this->assign('list',$list);
        $this->display();
    }
}